package hyj.qx.kuaican.model;

import java.time.LocalDateTime;
import java.util.List;

public class Order {
    // 订单ID
    private String orderId;
    // 订单中的商品列表
    private List<Item> items;
    // 订单状态
    private OrderStatus status;
    // 订单总价
    private double totalPrice;
    // 订单创建时间
    private LocalDateTime createTime;

    private String Remark;

    public Order (){}

    @Override
    public String toString() {
        return "Order{" +
                "orderId='" + orderId + '\'' +
                ", items=" + items +
                ", status=" + status +
                ", totalPrice=" + totalPrice +
                ", createTime=" + createTime +
                ", Remark='" + Remark + '\'' +
                '}';
    }

    public Order (String orderId, List<Item> items, OrderStatus status, double totalPrice, LocalDateTime createTime){
        this.orderId =orderId;
        this.items = items;
        this.status = status;
        this.totalPrice = totalPrice;
        this.createTime = createTime;
    }
    public void setOrderId(String orderId){this.orderId =orderId;}
    public String getOrderId(){return orderId;}
    public void setItems(List<Item> items){this.items = items;}
    public List<Item> getItems(){return items;}
    public void setStatus(OrderStatus status){this.status = status;}
    public OrderStatus getStatus(){return status;}
    public void setTotalPrice(double totalPrice){this.totalPrice =totalPrice;}
    public double getTotalPrice(){return totalPrice;}
    public void setCreateTime(LocalDateTime createTime){this.createTime =createTime;}
    public LocalDateTime getCreateTime(){return createTime;}
    public void setRemark(String remark){this.Remark=remark;}
    public String getRemark(){return Remark;}

}
